<template>
    <InputComponent ref="input" :input-name="inputName" :input-lable="inputLable" :default-value="defauleValue" input-type="number"></InputComponent>
</template>

<script>
import InputComponent from "@/components/input/InputComponent";

export default {
  name: "NumberInputComponent",
  methods:{
    getInputValue(){
      return this.$refs["input"].getInputValue();
    },
    setInputValue(value){
      this.$refs["input"].setInputValue(value);
    }
  },
  props:{
    inputLable:String,
    inputName:String,
    validate:String,
    defauleValue:String
  },
  components: {InputComponent},
  mounted() {
    this.$parent.$emit("inputRegist",this.inputName,this);
  },
  destroyed() {
    this.$parent.$emit("inputUnRegist",this.inputName);
  }
}
</script>

<style scoped>

</style>